# myapp/urls.py
from django.contrib import admin
from django.urls import path
from django.shortcuts import render
from myapp import views  # 确保导入 views
from . import views
from django.contrib.auth import views as auth_views

urlpatterns = [
    path('', views.page1, name='page1'),
    path('page2/', views.page2, name='page2'),
    path('page3/', views.page3, name='page3'),
    path('index/', views.index, name='index'),  # 首页
    path('login_view/', auth_views.LoginView.as_view(), name='login'),  
    path('logout_view/', auth_views.LogoutView.as_view(), name='logout'),
    path('signup/', views.signup, name='signup'),  # 注册页
    path('accounts/profile/', views.profile, name='profile'),#个人主页
    path('category/<int:category_id>/', views.category_details, name='category_details'),
]
